#!/usr/bin/env python3.8
# -*- encoding: utf-8 -*-
'''
@File    :   schemas.py
@Time    :   2023/04/05 10:15:03
@Author  :   windstarry 
@Version :   1.0
'''
# here put the import lib
from typing import Union
from pydantic import BaseModel

class BooksBase(BaseModel):     
    bookname : str
    prices : Union[int, None] = None

class Books(BooksBase): 
    id: Union[int, None]=None
    class Config:
        orm_mode = True

